package com.cloudkinto.vo.order.allocate;

import com.cloudkinto.vo.order.outbound.CellInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 调拨拣货详情
 *
 * @author long
 */
@Data
public class AllocatePickingDetail {
    private Long id;
    @ApiModelProperty("客户id")
    private Long companyId;
    @ApiModelProperty("计划编号")
    private String planNo;
    @ApiModelProperty("目的地类型 1FBA 2三方仓")
    private Integer destinationType;
    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("拣货数据")
    private List<AllocatePicking> pickingList = new ArrayList<>();

    @Data
    public static class AllocatePicking {
        private Long allocatePlanItemId;
        private Long productId;
        private String sku;
        @ApiModelProperty("产品条码")
        private String mainBarcode;
        private String fnsku;
        @ApiModelProperty("预报出库产品数")
        private Integer forecastQty;
        @ApiModelProperty("实际出库产品数")
        private Integer outboundQty;
        private List<CellInfo> cellInfoList = new ArrayList<>();
    }
}
